<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PregImageComponent
 *
 * @author X-Men
 */
class PregImageComponent extends Component
{

    public function getSrc($img)
    {
      preg_match('/\/img\/(.*?)"/',$img, $preg);
        return $preg[1];
    }
}
